using System;

namespace Umbraco.Ecommerce.WebShop.UserControls.QuickPay
{
	/// <summary>
	/// Summary description for QuickPayResponseContent.
	/// </summary>
	public class QuickPayResponseContent
	{
		string msgtype;
		string amount;
		string time;
		string ordernum;
		string pbsstat;
		string qpstat;
		string qpstatmsg;
		string merchantemail;
		string merchant;
		string currency;
		string transaction;
		string cardnum;

		public QuickPayResponseContent(string content)
		{			
			msgtype = QuickPayUtil.findValue(content, "msgtype");
			amount = QuickPayUtil.findValue(content, "amount");
			time = QuickPayUtil.findValue(content, "time");
			ordernum = QuickPayUtil.findValue(content, "ordernum");
			pbsstat = QuickPayUtil.findValue(content, "pbsstat");
			qpstat = QuickPayUtil.findValue(content, "qpstat");
			qpstatmsg = QuickPayUtil.findValue(content, "qpstatmsg");
			merchantemail = QuickPayUtil.findValue(content, "merchantemail");
			merchant = QuickPayUtil.findValue(content, "merchant");
			currency = QuickPayUtil.findValue(content, "currency");
			transaction = QuickPayUtil.findValue(content, "transaction");
			cardnum = QuickPayUtil.findValue(content, "cardnum");
		}

		public string Msgtype
		{
			get { return msgtype; }
		}

		public string Amount
		{
			get { return amount; }
		}

		public string Time
		{
			get { return time; }
		}

		public string Ordernum
		{
			get { return ordernum; }
		}

		public string Pbsstat
		{
			get { return pbsstat; }
		}

		public string Qpstat
		{
			get { return qpstat; }
		}

		public string Qpstatmsg
		{
			get { return qpstatmsg; }
		}

		public string Merchantemail
		{
			get { return merchantemail; }
		}

		public string Merchant
		{
			get { return merchant; }
		}

		public string Currency
		{
			get { return currency; }
		}

		public string Transaction
		{
			get { return transaction; }
		}

		public string Cardnum
		{
			get { return cardnum; }
		}		
	}
}
